package nc.impl.hdysc.wbs;

import nc.bs.dao.BaseDAO;
import nc.bs.framework.common.NCLocator;
import nc.itf.hdysc.wbs.IWebAction;
import nc.itf.hdysc.web.IWebData;
import nc.vo.hdysc.order.GroupOrderVO;
import nc.vo.pub.BusinessException;

public class MainOrderUpdate implements IWebAction{

	public void doAction(String[] params) throws BusinessException {
		IWebData iw = NCLocator.getInstance().lookup(IWebData.class) ;
		
		GroupOrderVO note = iw.qryByPk(params[0], GroupOrderVO.class) ;
		
		String order_desc = note.getOrder_desc() ;
		
		BaseDAO dao = new BaseDAO() ;
		String updateSQL = "update crs_main_order set order_desc='"+order_desc+"' where sell_id='"+note.getSell_id()+"' and nvl(dr,0)=0" ;
		dao.executeUpdate(updateSQL) ;
	}

}
